package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 违规记录管理对象 tour_violation
 *
 * @author once
 * @date 2020-10-02
 */
public class TourViolation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 违规记录ID */
    private Long violationId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** $column.columnComment */
    @Excel(name = "用户ID")
    private Long violationRecordId;

    /** 违规记录类别 */
    @Excel(name = "违规记录类别")
    private String violationType;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private String isDelete;

    /** 违规原因 */
    @Excel(name = "违规原因")
    private String violationReason;

    public void setViolationId(Long violationId)
    {
        this.violationId = violationId;
    }

    public Long getViolationId()
    {
        return violationId;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setViolationRecordId(Long violationRecordId)
    {
        this.violationRecordId = violationRecordId;
    }

    public Long getViolationRecordId()
    {
        return violationRecordId;
    }
    public void setViolationType(String violationType)
    {
        this.violationType = violationType;
    }

    public String getViolationType()
    {
        return violationType;
    }
    public void setIsDelete(String isDelete)
    {
        this.isDelete = isDelete;
    }

    public String getIsDelete()
    {
        return isDelete;
    }
    public void setViolationReason(String violationReason)
    {
        this.violationReason = violationReason;
    }

    public String getViolationReason()
    {
        return violationReason;
    }
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createtime;
    public void setCreatetime(Date checkTime) {
        this.createtime = checkTime;
    }



    public Date getCreatetime() {
        return createtime;
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("violationId", getViolationId())
            .append("userId", getUserId())
            .append("violationRecordId", getViolationRecordId())
            .append("violationType", getViolationType())
            .append("isDelete", getIsDelete())
            .append("createtime", getCreatetime())
            .append("violationReason", getViolationReason())
            .toString();
    }
}
